import axios from 'axios'

export function fetchList() {
  return async (dispatch) => {
    const resp = await axios.get('/api/list');
    dispatch({ type: 'updateList', payload: resp.data.data })
  }
}